package com.zbf.web;

import com.zbf.config.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/23  11:34
 * 描述:
 */
@RestController
public class TestController {

    @Autowired
    private UserInfo userInfo;

    @RequestMapping("getUserInfo")
    public String getUserInfo(){

        return userInfo.getUsername()+"======username========password====="+userInfo.getPassword();
    }

}
